package com.jiaoxue.tasknotes.adapter;

import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;

import com.chad.library.adapter.base.BaseItemDraggableAdapter;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jiaoxue.tasknotes.Bean.TaskBean;
import com.jiaoxue.tasknotes.R;

import java.util.List;

/**
 * Created by Administrator on 2017/11/16 0016.
 */

public class TaskAdapter extends BaseItemDraggableAdapter<TaskBean,BaseViewHolder> {
    public TaskAdapter(@Nullable List data) {
        super(R.layout.item_task,data);
    }


    @Override
    protected void convert(BaseViewHolder helper, TaskBean item) {
        helper.setText(R.id.texttitle,item.getTitle())
                .setText(R.id.texttag,item.getTag())
                .setText(R.id.textcontent,item.getContent());
    }
}
